<template>
    <div>
        <el-table :data="tableData" border :span-method='objSpanMethod'>
            <el-table-column label="病人编号" prop='#Ref_Gene'></el-table-column>
            <el-table-column label="样本编号" prop="OMIM"></el-table-column>
            <el-table-column label="亲属关系" prop='Chr'></el-table-column>
        </el-table> 
        <button @click='add'>按钮</button>
    </div>
</template>
<script>
import { data } from "api/index.js";
export default {
    name: 'test',
    data() {
        return {
            tableData:[],
            size:10000
        }
    },
    methods: {
        add(){
            
            this.tests()
            this.size+=5000;
        },
        tests(){
            let obj={
                size:this.size
            }
            data.test(obj).then((res)=>{
                this.tableData=res.data
            })
        }
    },
    created() {
        
        // this.tests()

    },
}
</script>

